From 24c99b8f491c1b6bee356adcfe7b419e36ef4c55 Mon Sep 17 00:00:00 2001 From: baiyu <214324@12321.com> Date: Tue, 24 Sep 2013 09:13:18 +0800 Subject: [PATCH] add db migrate --- .../20130911135608_addidentity_to_user_extensions.rb | 7 +++++++ .../20130911140019_removeidentity_from_user_extensions.rb | 7 +++++++ .../20130911140205_add_identity_to_user_extensions.rb | 5 +++++ .../20130918085406_add_student_id_to_userextensions.rb | 5 ----- .../20130918085747_add_student_id_to_user_extensions.rb | 5 +++++ ...130922123727_add_teacher_realname_to_user_extensions.rb | 5 +++++ ...30922123849_add_studentr_realname_to_user_extensions.rb | 5 +++++ 7 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 db/migrate/20130911135608_addidentity_to_user_extensions.rb create mode 100644 db/migrate/20130911140019_removeidentity_from_user_extensions.rb create mode 100644 db/migrate/20130911140205_add_identity_to_user_extensions.rb delete mode 100644 db/migrate/20130918085406_add_student_id_to_userextensions.rb create mode 100644 db/migrate/20130918085747_add_student_id_to_user_extensions.rb create mode 100644 db/migrate/20130922123727_add_teacher_realname_to_user_extensions.rb create mode 100644 db/migrate/20130922123849_add_studentr_realname_to_user_extensions.rb diff --git a/db/migrate/20130911135608_addidentity_to_user_extensions.rb b/db/migrate/20130911135608_addidentity_to_user_extensions.rb new file mode 100644 index 000000000..ad308a1bc --- /dev/null +++ b/db/migrate/20130911135608_addidentity_to_user_extensions.rb @@ -0,0 +1,7 @@ +class AddidentityToUserExtensions < ActiveRecord::Migration + def up + end + + def down + end +end diff --git a/db/migrate/20130911140019_removeidentity_from_user_extensions.rb b/db/migrate/20130911140019_removeidentity_from_user_extensions.rb new file mode 100644 index 000000000..3247c4df1 --- /dev/null +++ b/db/migrate/20130911140019_removeidentity_from_user_extensions.rb @@ -0,0 +1,7 @@ +class RemoveidentityFromUserExtensions < ActiveRecord::Migration + def up + end + + def down + end +end diff --git a/db/migrate/20130911140205_add_identity_to_user_extensions.rb b/db/migrate/20130911140205_add_identity_to_user_extensions.rb new file mode 100644 index 000000000..1f723fbf6 --- /dev/null +++ b/db/migrate/20130911140205_add_identity_to_user_extensions.rb @@ -0,0 +1,5 @@ +class AddIdentityToUserExtensions < ActiveRecord::Migration + def change + add_column :user_extensions, :identity, :integer + end +end diff --git a/db/migrate/20130918085406_add_student_id_to_userextensions.rb b/db/migrate/20130918085406_add_student_id_to_userextensions.rb deleted file mode 100644 index 644dd5f3b..000000000 --- a/db/migrate/20130918085406_add_student_id_to_userextensions.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddStudentIdToUserextensions < ActiveRecord::Migration - def change - add_column :userextensions, :student_id, :integer - end -end diff --git a/db/migrate/20130918085747_add_student_id_to_user_extensions.rb b/db/migrate/20130918085747_add_student_id_to_user_extensions.rb new file mode 100644 index 000000000..74ff788bd --- /dev/null +++ b/db/migrate/20130918085747_add_student_id_to_user_extensions.rb @@ -0,0 +1,5 @@ +class AddStudentIdToUserExtensions < ActiveRecord::Migration + def change + add_column :user_extensions, :student_id, :integer + end +end diff --git a/db/migrate/20130922123727_add_teacher_realname_to_user_extensions.rb b/db/migrate/20130922123727_add_teacher_realname_to_user_extensions.rb new file mode 100644 index 000000000..6555c5264 --- /dev/null +++ b/db/migrate/20130922123727_add_teacher_realname_to_user_extensions.rb @@ -0,0 +1,5 @@ +class AddTeacherRealnameToUserExtensions < ActiveRecord::Migration + def change + add_column :user_extensions, :teacher_realname, :string + end +end diff --git a/db/migrate/20130922123849_add_studentr_realname_to_user_extensions.rb b/db/migrate/20130922123849_add_studentr_realname_to_user_extensions.rb new file mode 100644 index 000000000..6d8dac690 --- /dev/null +++ b/db/migrate/20130922123849_add_studentr_realname_to_user_extensions.rb @@ -0,0 +1,5 @@ +class AddStudentrRealnameToUserExtensions < ActiveRecord::Migration + def change + add_column :user_extensions, :student_realname, :string + end +end