添加identifier

This commit is contained in:
huang 2017-04-26 09:39:27 +08:00
parent 2218a63710
commit bf5416fe4b
3 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
class AddIdentifierToMyshixun < ActiveRecord::Migration
def change
add_column :myshixuns, :identifier, :string
end
end

View File

@ -0,0 +1,7 @@
class SyncIdentifierToMyshixun < ActiveRecord::Migration
def up
end
def down
end
end