Sha256: c56b26899f79bff7de7d2870503fee896fd778b6cb61ae2fd7568f4e9ff9c42d

Contents?: true

Size: 241 Bytes

Versions: 18

Compression:

Stored size: 241 Bytes

Contents

class CreatePosts < ActiveRecord::Migration[5.0]
  def change
    create_table :posts do |t|
      t.string :title
      t.string :body
      t.belongs_to :author, foreign_key: { name: :posts_users_fk }

      t.timestamps
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
sapience-0.2.4 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.2.3 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.2.2 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.2.1 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.2.0 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.13 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.12 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.11 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.10 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.9 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.8 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.7 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.6 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.5 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.4 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.3 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.2 test_app/db/migrate/20160812093621_create_posts.rb
sapience-0.1.1 test_app/db/migrate/20160812093621_create_posts.rb