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.11.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.10.5 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.10.4 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.10.3 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.10.2 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.10.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.10.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.9.2 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.9.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.9.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.8.6 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.8.5 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.8.4 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.8.3 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.8.2 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.8.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.8.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.7.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.7.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.6.2 spec/test_app/db/migrate/20151012185726_create_articles.rb