From e899a83a85e4c77f9151120ed2ab7afa0b2b3245 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 18 Jan 2008 07:28:07 +0000 Subject: move migrations git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../test/fixtures/migrations/1_people_have_last_names.rb | 9 --------- .../test/fixtures/migrations/2_we_need_reminders.rb | 12 ------------ .../test/fixtures/migrations/3_innocent_jointable.rb | 12 ------------ .../migrations_with_decimal/1_give_me_big_numbers.rb | 15 --------------- .../migrations_with_duplicate/1_people_have_last_names.rb | 9 --------- .../migrations_with_duplicate/2_we_need_reminders.rb | 12 ------------ .../test/fixtures/migrations_with_duplicate/3_foo.rb | 7 ------- .../migrations_with_duplicate/3_innocent_jointable.rb | 12 ------------ .../1000_people_have_middle_names.rb | 9 --------- .../1_people_have_last_names.rb | 9 --------- .../3_we_need_reminders.rb | 12 ------------ .../4_innocent_jointable.rb | 12 ------------ .../test/migrations/decimal/1_give_me_big_numbers.rb | 15 +++++++++++++++ .../test/migrations/duplicate/1_people_have_last_names.rb | 9 +++++++++ .../test/migrations/duplicate/2_we_need_reminders.rb | 12 ++++++++++++ activerecord/test/migrations/duplicate/3_foo.rb | 7 +++++++ .../test/migrations/duplicate/3_innocent_jointable.rb | 12 ++++++++++++ .../migrations/missing/1000_people_have_middle_names.rb | 9 +++++++++ .../test/migrations/missing/1_people_have_last_names.rb | 9 +++++++++ .../test/migrations/missing/3_we_need_reminders.rb | 12 ++++++++++++ .../test/migrations/missing/4_innocent_jointable.rb | 12 ++++++++++++ .../test/migrations/valid/1_people_have_last_names.rb | 9 +++++++++ activerecord/test/migrations/valid/2_we_need_reminders.rb | 12 ++++++++++++ .../test/migrations/valid/3_innocent_jointable.rb | 12 ++++++++++++ 24 files changed, 130 insertions(+), 130 deletions(-) delete mode 100644 activerecord/test/fixtures/migrations/1_people_have_last_names.rb delete mode 100644 activerecord/test/fixtures/migrations/2_we_need_reminders.rb delete mode 100644 activerecord/test/fixtures/migrations/3_innocent_jointable.rb delete mode 100644 activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb delete mode 100644 activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb delete mode 100644 activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb delete mode 100644 activerecord/test/fixtures/migrations_with_duplicate/3_foo.rb delete mode 100644 activerecord/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb delete mode 100644 activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb delete mode 100644 activerecord/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb delete mode 100644 activerecord/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb delete mode 100644 activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb create mode 100644 activerecord/test/migrations/decimal/1_give_me_big_numbers.rb create mode 100644 activerecord/test/migrations/duplicate/1_people_have_last_names.rb create mode 100644 activerecord/test/migrations/duplicate/2_we_need_reminders.rb create mode 100644 activerecord/test/migrations/duplicate/3_foo.rb create mode 100644 activerecord/test/migrations/duplicate/3_innocent_jointable.rb create mode 100644 activerecord/test/migrations/missing/1000_people_have_middle_names.rb create mode 100644 activerecord/test/migrations/missing/1_people_have_last_names.rb create mode 100644 activerecord/test/migrations/missing/3_we_need_reminders.rb create mode 100644 activerecord/test/migrations/missing/4_innocent_jointable.rb create mode 100644 activerecord/test/migrations/valid/1_people_have_last_names.rb create mode 100644 activerecord/test/migrations/valid/2_we_need_reminders.rb create mode 100644 activerecord/test/migrations/valid/3_innocent_jointable.rb (limited to 'activerecord/test') diff --git a/activerecord/test/fixtures/migrations/1_people_have_last_names.rb b/activerecord/test/fixtures/migrations/1_people_have_last_names.rb deleted file mode 100644 index 009729b330..0000000000 --- a/activerecord/test/fixtures/migrations/1_people_have_last_names.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PeopleHaveLastNames < ActiveRecord::Migration - def self.up - add_column "people", "last_name", :string - end - - def self.down - remove_column "people", "last_name" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations/2_we_need_reminders.rb b/activerecord/test/fixtures/migrations/2_we_need_reminders.rb deleted file mode 100644 index ac5918f02a..0000000000 --- a/activerecord/test/fixtures/migrations/2_we_need_reminders.rb +++ /dev/null @@ -1,12 +0,0 @@ -class WeNeedReminders < ActiveRecord::Migration - def self.up - create_table("reminders") do |t| - t.column :content, :text - t.column :remind_at, :datetime - end - end - - def self.down - drop_table "reminders" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations/3_innocent_jointable.rb b/activerecord/test/fixtures/migrations/3_innocent_jointable.rb deleted file mode 100644 index 21c9ca5328..0000000000 --- a/activerecord/test/fixtures/migrations/3_innocent_jointable.rb +++ /dev/null @@ -1,12 +0,0 @@ -class InnocentJointable < ActiveRecord::Migration - def self.up - create_table("people_reminders", :id => false) do |t| - t.column :reminder_id, :integer - t.column :person_id, :integer - end - end - - def self.down - drop_table "people_reminders" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb b/activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb deleted file mode 100644 index 0aed7cbd84..0000000000 --- a/activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb +++ /dev/null @@ -1,15 +0,0 @@ -class GiveMeBigNumbers < ActiveRecord::Migration - def self.up - create_table :big_numbers do |table| - table.column :bank_balance, :decimal, :precision => 10, :scale => 2 - table.column :big_bank_balance, :decimal, :precision => 15, :scale => 2 - table.column :world_population, :decimal, :precision => 10 - table.column :my_house_population, :decimal, :precision => 2 - table.column :value_of_e, :decimal - end - end - - def self.down - drop_table :big_numbers - end -end diff --git a/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb b/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb deleted file mode 100644 index 009729b330..0000000000 --- a/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PeopleHaveLastNames < ActiveRecord::Migration - def self.up - add_column "people", "last_name", :string - end - - def self.down - remove_column "people", "last_name" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb b/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb deleted file mode 100644 index ac5918f02a..0000000000 --- a/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb +++ /dev/null @@ -1,12 +0,0 @@ -class WeNeedReminders < ActiveRecord::Migration - def self.up - create_table("reminders") do |t| - t.column :content, :text - t.column :remind_at, :datetime - end - end - - def self.down - drop_table "reminders" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_duplicate/3_foo.rb b/activerecord/test/fixtures/migrations_with_duplicate/3_foo.rb deleted file mode 100644 index 916fe580fa..0000000000 --- a/activerecord/test/fixtures/migrations_with_duplicate/3_foo.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Foo < ActiveRecord::Migration - def self.up - end - - def self.down - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb b/activerecord/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb deleted file mode 100644 index 21c9ca5328..0000000000 --- a/activerecord/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb +++ /dev/null @@ -1,12 +0,0 @@ -class InnocentJointable < ActiveRecord::Migration - def self.up - create_table("people_reminders", :id => false) do |t| - t.column :reminder_id, :integer - t.column :person_id, :integer - end - end - - def self.down - drop_table "people_reminders" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb b/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb deleted file mode 100644 index 753ee34152..0000000000 --- a/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PeopleHaveMiddleNames < ActiveRecord::Migration - def self.up - add_column "people", "middle_name", :string - end - - def self.down - remove_column "people", "middle_name" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb b/activerecord/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb deleted file mode 100644 index 009729b330..0000000000 --- a/activerecord/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PeopleHaveLastNames < ActiveRecord::Migration - def self.up - add_column "people", "last_name", :string - end - - def self.down - remove_column "people", "last_name" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb b/activerecord/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb deleted file mode 100644 index ac5918f02a..0000000000 --- a/activerecord/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb +++ /dev/null @@ -1,12 +0,0 @@ -class WeNeedReminders < ActiveRecord::Migration - def self.up - create_table("reminders") do |t| - t.column :content, :text - t.column :remind_at, :datetime - end - end - - def self.down - drop_table "reminders" - end -end \ No newline at end of file diff --git a/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb b/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb deleted file mode 100644 index 21c9ca5328..0000000000 --- a/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb +++ /dev/null @@ -1,12 +0,0 @@ -class InnocentJointable < ActiveRecord::Migration - def self.up - create_table("people_reminders", :id => false) do |t| - t.column :reminder_id, :integer - t.column :person_id, :integer - end - end - - def self.down - drop_table "people_reminders" - end -end \ No newline at end of file diff --git a/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb b/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb new file mode 100644 index 0000000000..0aed7cbd84 --- /dev/null +++ b/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb @@ -0,0 +1,15 @@ +class GiveMeBigNumbers < ActiveRecord::Migration + def self.up + create_table :big_numbers do |table| + table.column :bank_balance, :decimal, :precision => 10, :scale => 2 + table.column :big_bank_balance, :decimal, :precision => 15, :scale => 2 + table.column :world_population, :decimal, :precision => 10 + table.column :my_house_population, :decimal, :precision => 2 + table.column :value_of_e, :decimal + end + end + + def self.down + drop_table :big_numbers + end +end diff --git a/activerecord/test/migrations/duplicate/1_people_have_last_names.rb b/activerecord/test/migrations/duplicate/1_people_have_last_names.rb new file mode 100644 index 0000000000..81af5fef5e --- /dev/null +++ b/activerecord/test/migrations/duplicate/1_people_have_last_names.rb @@ -0,0 +1,9 @@ +class PeopleHaveLastNames < ActiveRecord::Migration + def self.up + add_column "people", "last_name", :string + end + + def self.down + remove_column "people", "last_name" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/duplicate/2_we_need_reminders.rb b/activerecord/test/migrations/duplicate/2_we_need_reminders.rb new file mode 100644 index 0000000000..d5e71ce8ef --- /dev/null +++ b/activerecord/test/migrations/duplicate/2_we_need_reminders.rb @@ -0,0 +1,12 @@ +class WeNeedReminders < ActiveRecord::Migration + def self.up + create_table("reminders") do |t| + t.column :content, :text + t.column :remind_at, :datetime + end + end + + def self.down + drop_table "reminders" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/duplicate/3_foo.rb b/activerecord/test/migrations/duplicate/3_foo.rb new file mode 100644 index 0000000000..916fe580fa --- /dev/null +++ b/activerecord/test/migrations/duplicate/3_foo.rb @@ -0,0 +1,7 @@ +class Foo < ActiveRecord::Migration + def self.up + end + + def self.down + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/duplicate/3_innocent_jointable.rb b/activerecord/test/migrations/duplicate/3_innocent_jointable.rb new file mode 100644 index 0000000000..21c9ca5328 --- /dev/null +++ b/activerecord/test/migrations/duplicate/3_innocent_jointable.rb @@ -0,0 +1,12 @@ +class InnocentJointable < ActiveRecord::Migration + def self.up + create_table("people_reminders", :id => false) do |t| + t.column :reminder_id, :integer + t.column :person_id, :integer + end + end + + def self.down + drop_table "people_reminders" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/missing/1000_people_have_middle_names.rb b/activerecord/test/migrations/missing/1000_people_have_middle_names.rb new file mode 100644 index 0000000000..9fd495b97c --- /dev/null +++ b/activerecord/test/migrations/missing/1000_people_have_middle_names.rb @@ -0,0 +1,9 @@ +class PeopleHaveMiddleNames < ActiveRecord::Migration + def self.up + add_column "people", "middle_name", :string + end + + def self.down + remove_column "people", "middle_name" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/missing/1_people_have_last_names.rb b/activerecord/test/migrations/missing/1_people_have_last_names.rb new file mode 100644 index 0000000000..81af5fef5e --- /dev/null +++ b/activerecord/test/migrations/missing/1_people_have_last_names.rb @@ -0,0 +1,9 @@ +class PeopleHaveLastNames < ActiveRecord::Migration + def self.up + add_column "people", "last_name", :string + end + + def self.down + remove_column "people", "last_name" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/missing/3_we_need_reminders.rb b/activerecord/test/migrations/missing/3_we_need_reminders.rb new file mode 100644 index 0000000000..d5e71ce8ef --- /dev/null +++ b/activerecord/test/migrations/missing/3_we_need_reminders.rb @@ -0,0 +1,12 @@ +class WeNeedReminders < ActiveRecord::Migration + def self.up + create_table("reminders") do |t| + t.column :content, :text + t.column :remind_at, :datetime + end + end + + def self.down + drop_table "reminders" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/missing/4_innocent_jointable.rb b/activerecord/test/migrations/missing/4_innocent_jointable.rb new file mode 100644 index 0000000000..21c9ca5328 --- /dev/null +++ b/activerecord/test/migrations/missing/4_innocent_jointable.rb @@ -0,0 +1,12 @@ +class InnocentJointable < ActiveRecord::Migration + def self.up + create_table("people_reminders", :id => false) do |t| + t.column :reminder_id, :integer + t.column :person_id, :integer + end + end + + def self.down + drop_table "people_reminders" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/valid/1_people_have_last_names.rb b/activerecord/test/migrations/valid/1_people_have_last_names.rb new file mode 100644 index 0000000000..81af5fef5e --- /dev/null +++ b/activerecord/test/migrations/valid/1_people_have_last_names.rb @@ -0,0 +1,9 @@ +class PeopleHaveLastNames < ActiveRecord::Migration + def self.up + add_column "people", "last_name", :string + end + + def self.down + remove_column "people", "last_name" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/valid/2_we_need_reminders.rb b/activerecord/test/migrations/valid/2_we_need_reminders.rb new file mode 100644 index 0000000000..d5e71ce8ef --- /dev/null +++ b/activerecord/test/migrations/valid/2_we_need_reminders.rb @@ -0,0 +1,12 @@ +class WeNeedReminders < ActiveRecord::Migration + def self.up + create_table("reminders") do |t| + t.column :content, :text + t.column :remind_at, :datetime + end + end + + def self.down + drop_table "reminders" + end +end \ No newline at end of file diff --git a/activerecord/test/migrations/valid/3_innocent_jointable.rb b/activerecord/test/migrations/valid/3_innocent_jointable.rb new file mode 100644 index 0000000000..21c9ca5328 --- /dev/null +++ b/activerecord/test/migrations/valid/3_innocent_jointable.rb @@ -0,0 +1,12 @@ +class InnocentJointable < ActiveRecord::Migration + def self.up + create_table("people_reminders", :id => false) do |t| + t.column :reminder_id, :integer + t.column :person_id, :integer + end + end + + def self.down + drop_table "people_reminders" + end +end \ No newline at end of file -- cgit v1.2.3