Sha256: 5ae78e77a2d1fef7016586a0b492523a996af008664efd001b3c56749c710885
Contents?: true
Size: 779 Bytes
Versions: 4
Compression:
Stored size: 779 Bytes
Contents
# encoding: UTF-8 class CreatePostsTable < ActiveRecord::Migration def change create_table :posts do |t| t.column :title, :string end end end class CreateCommentsTable < ActiveRecord::Migration def change create_table :comments do |t| t.references :post end end end class CreateAuthorsTable < ActiveRecord::Migration def change create_table :authors do |t| t.references :comment t.references :collab_posts end end end class CreateFavoritesTable < ActiveRecord::Migration def change create_table :favorites do |t| t.references :post end end end class CreateCollabPostsTable < ActiveRecord::Migration def change create_table :collab_posts do |t| t.references :authors end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
arel-helpers-2.1.1 | spec/env/migrations.rb |
arel-helpers-2.1.0 | spec/env/migrations.rb |
arel-helpers-2.0.2 | spec/env/migrations.rb |
arel-helpers-2.0.1 | spec/env/migrations.rb |