Sha256: 33a4881163fd884c6b3ffa377f96d8ef3171ef52c8c2c42c4bb958c8d181ad68

Contents?: true

Size: 244 Bytes

Versions: 52

Compression:

Stored size: 244 Bytes

Contents

class CreateArticles < ActiveRecord::Migration
  def change
    create_table :articles do |t|
      t.string :title
      t.text :content
      t.references :user, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
adeia-0.6.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.6.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.5.6 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.5.5 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.5.4 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.5.3 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.5.2 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.5.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.5.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.4.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.3.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.2.0 spec/test_app/db/migrate/20151012185726_create_articles.rb