添加identifier
This commit is contained in:
parent
2218a63710
commit
bf5416fe4b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
class AddIdentifierToMyshixun < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :myshixuns, :identifier, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
class SyncIdentifierToMyshixun < ActiveRecord::Migration
|
||||
def up
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue