1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Cleaned rails_root testing migrations so there is only one migration per model

This commit is contained in:
Ryan McGeary 2008-07-13 16:53:52 -04:00
parent e1a54268b0
commit 11cad2c0a1
4 changed files with 2 additions and 18 deletions

View file

@ -4,6 +4,7 @@ class CreateUsers < ActiveRecord::Migration
t.column :name, :string
t.column :email, :string
t.column :age, :integer
t.column :ssn, :string
end
add_index :users, :email
add_index :users, :name

View file

@ -4,6 +4,7 @@ class CreateAddresses < ActiveRecord::Migration
t.column :title, :string
t.column :addressable_id, :integer
t.column :addressable_type, :string
t.column :zip, :string
end
end

View file

@ -1,9 +0,0 @@
class AddSsnToUsers < ActiveRecord::Migration
def self.up
add_column :users, :ssn, :string
end
def self.down
remove_column :users, :ssn
end
end

View file

@ -1,9 +0,0 @@
class AddZipToAddresses < ActiveRecord::Migration
def self.up
add_column :addresses, :zip, :string
end
def self.down
remove_column :addresses, :zip
end
end