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-1.0.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.15.4 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.15.3 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.15.2 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.15.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.15.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.14.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.13.1 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.13.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.12.0 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.11 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.10 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.9 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.8 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.7 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.6 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.5 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.4 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.3 spec/test_app/db/migrate/20151012185726_create_articles.rb
adeia-0.11.2 spec/test_app/db/migrate/20151012185726_create_articles.rb