diff --git a/app/models/myshixun.rb b/app/models/myshixun.rb index c9894d4ee..ce0e08623 100644 --- a/app/models/myshixun.rb +++ b/app/models/myshixun.rb @@ -1,5 +1,5 @@ class Myshixun < ActiveRecord::Base - attr_accessible :description, :name, :parent_id, :user_id, :gpid, :forked_from, :visits, :is_public + attr_accessible :description, :name, :parent_id, :user_id, :gpid, :forked_from, :visits, :is_public, :identifier has_many :users, :through => :myshixun_members has_many :myshixun_members has_one :repository diff --git a/db/migrate/20170425092430_add_identifier_to_myshixun.rb b/db/migrate/20170425092430_add_identifier_to_myshixun.rb new file mode 100644 index 000000000..d2d1cff4d --- /dev/null +++ b/db/migrate/20170425092430_add_identifier_to_myshixun.rb @@ -0,0 +1,5 @@ +class AddIdentifierToMyshixun < ActiveRecord::Migration + def change + add_column :myshixuns, :identifier, :string + end +end diff --git a/db/migrate/20170425093133_sync_identifier_to_myshixun.rb b/db/migrate/20170425093133_sync_identifier_to_myshixun.rb new file mode 100644 index 000000000..b927c6690 --- /dev/null +++ b/db/migrate/20170425093133_sync_identifier_to_myshixun.rb @@ -0,0 +1,7 @@ +class SyncIdentifierToMyshixun < ActiveRecord::Migration + def up + end + + def down + end +end