removing migration files as they are no longer needed

This commit is contained in:
Aaron Patterson 2012-01-12 15:37:06 -08:00
parent 01f86cd8ea
commit dea59f0150
7 changed files with 2 additions and 56 deletions

@ -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

@ -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

@ -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

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

@ -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

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

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