Sha256: f500f9e91fe67733513f719d5573ff5aab26da416505091ec71e404cf4497f08

Contents?: true

Size: 620 Bytes

Versions: 13

Compression:

Stored size: 620 Bytes

Contents

class AddDummyModels < ActiveRecord::Migration[5.1]
  def change
    create_table :posts, force: true do |t|
      t.timestamps
      t.string :title
      t.integer :author_id
      t.integer :status, null: false, default: 0
      t.integer :likes, null: false, default: 0
      t.integer :category
      t.timestamp :published_at
    end

    create_table :comments, force: true do |t|
      t.timestamps
      t.integer :post_id
      t.integer :author_id
      t.integer :likes, null: false, default: 0
    end

    create_table :authors, force: true do |t|
      t.timestamps
      t.string :name
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active_reporter-0.7.1 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.6.5 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.6.4 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.6.3 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.6.2 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.6.1 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.6.0 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.5.13 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.5.12 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.5.11 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.5.10 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.5.9 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
active_reporter-0.5.8 spec/dummy/db/migrate/20150714202319_add_dummy_models.rb