Sha256: 19dac3f1369f5ca27c214b7551625e661f3547e7f5fe427017d31236e5ec3ec0

Contents?: true

Size: 272 Bytes

Versions: 7

Compression:

Stored size: 272 Bytes

Contents

class CreateProducts < ActiveRecord::Migration[4.2]

  def change
    create_table :products do |t|
      t.integer :shop_id, limit: 8
      t.jsonb :data

      t.timestamps null: false
    end
    add_foreign_key :products, :disco_app_shops, column: :shop_id
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.18.0 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.18.2 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.18.3 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.18.6 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.18.4 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.18.1 test/dummy/db/migrate/20160307182229_create_products.rb