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:
parent
e1a54268b0
commit
11cad2c0a1
4 changed files with 2 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Add table
Reference in a new issue