add db migrate

This commit is contained in:
baiyu 2013-09-24 09:13:18 +08:00
parent 540f06c769
commit 24c99b8f49
7 changed files with 34 additions and 5 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

@ -1,5 +0,0 @@
class AddStudentIdToUserextensions < ActiveRecord::Migration
def change
add_column :userextensions, :student_id, :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