Initial import
This commit is contained in:
13
vendor/plugins/shoulda/test/rails_root/db/migrate/001_create_users.rb
vendored
Normal file
13
vendor/plugins/shoulda/test/rails_root/db/migrate/001_create_users.rb
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateUsers < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :users do |t|
|
||||
t.column :name, :string
|
||||
t.column :email, :string
|
||||
t.column :age, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :users
|
||||
end
|
||||
end
|
||||
13
vendor/plugins/shoulda/test/rails_root/db/migrate/002_create_posts.rb
vendored
Normal file
13
vendor/plugins/shoulda/test/rails_root/db/migrate/002_create_posts.rb
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreatePosts < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :posts do |t|
|
||||
t.column :user_id, :integer
|
||||
t.column :title, :string
|
||||
t.column :body, :text
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :posts
|
||||
end
|
||||
end
|
||||
12
vendor/plugins/shoulda/test/rails_root/db/migrate/003_create_taggings.rb
vendored
Normal file
12
vendor/plugins/shoulda/test/rails_root/db/migrate/003_create_taggings.rb
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateTaggings < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :taggings do |t|
|
||||
t.column :post_id, :integer
|
||||
t.column :tag_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :taggings
|
||||
end
|
||||
end
|
||||
11
vendor/plugins/shoulda/test/rails_root/db/migrate/004_create_tags.rb
vendored
Normal file
11
vendor/plugins/shoulda/test/rails_root/db/migrate/004_create_tags.rb
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateTags < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :tags do |t|
|
||||
t.column :name, :string
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :tags
|
||||
end
|
||||
end
|
||||
11
vendor/plugins/shoulda/test/rails_root/db/migrate/005_create_dogs.rb
vendored
Normal file
11
vendor/plugins/shoulda/test/rails_root/db/migrate/005_create_dogs.rb
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateDogs < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :dogs do |t|
|
||||
t.column :owner_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :dogs
|
||||
end
|
||||
end
|
||||
0
vendor/plugins/shoulda/test/rails_root/db/schema.rb
vendored
Normal file
0
vendor/plugins/shoulda/test/rails_root/db/schema.rb
vendored
Normal file
Reference in New Issue
Block a user