Browse files

removing migration files as they are no longer needed

  • Loading branch information...
1 parent 01f86cd commit dea59f01500bc540314087c726043aca768905c6 @tenderlove tenderlove committed Jan 12, 2012
View
4 activerecord/test/cases/migration/logger_test.rb
@@ -3,7 +3,7 @@
module ActiveRecord
class Migration
class LoggerTest < ActiveRecord::TestCase
- Migration = Struct.new(:version) do
+ Migration = Struct.new(:name, :version) do
def migrate direction
# do nothing
end
@@ -12,7 +12,7 @@ def migrate direction
def test_migration_should_be_run_without_logger
previous_logger = ActiveRecord::Base.logger
ActiveRecord::Base.logger = nil
- migrations = [Migration.new(1), Migration.new(2), Migration.new(3)]
+ migrations = [Migration.new('a', 1), Migration.new('b', 2), Migration.new('c', 3)]
ActiveRecord::Migrator.new(:up, migrations).migrate
ensure
ActiveRecord::Base.logger = previous_logger
View
9 activerecord/test/migrations/duplicate/1_people_have_last_names.rb
@@ -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
View
12 activerecord/test/migrations/duplicate/2_we_need_reminders.rb
@@ -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
View
7 activerecord/test/migrations/duplicate/3_foo.rb
@@ -1,7 +0,0 @@
-class Foo < ActiveRecord::Migration
- def self.up
- end
-
- def self.down
- end
-end
View
12 activerecord/test/migrations/duplicate/3_innocent_jointable.rb
@@ -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
View
7 activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb
@@ -1,7 +0,0 @@
-class Chunky < ActiveRecord::Migration
- def self.up
- end
-
- def self.down
- end
-end
View
7 activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb
@@ -1,7 +0,0 @@
-class Chunky < ActiveRecord::Migration
- def self.up
- end
-
- def self.down
- end
-end

0 comments on commit dea59f0

Please sign in to comment.