add migrate

This commit is contained in:
baiyu 2013-09-24 09:09:40 +08:00
parent 6ce27271e3
commit fffeec2044
6 changed files with 34 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,5 @@
class AddIdentityToUserExtensions < ActiveRecord::Migration
def change
add_column :user_extensions, :identity, :integer
end
end

View File

@ -0,0 +1,5 @@
class AddStudentIdToUserExtensions < ActiveRecord::Migration
def change
add_column :user_extensions, :student_id, :integer
end
end

View File

@ -0,0 +1,5 @@
class AddTeacherRealnameToUserExtensions < ActiveRecord::Migration
def change
add_column :user_extensions, :teacher_realname, :string
end
end

View File

@ -0,0 +1,5 @@
class AddStudentrRealnameToUserExtensions < ActiveRecord::Migration
def change
add_column :user_extensions, :student_realname, :string
end
end