Sha256: fb547be9cfd181ee0189d63bde86bb0ed67a2e2db8a40d122f44effaedcbd743

Contents?: true

Size: 268 Bytes

Versions: 10

Compression:

Stored size: 268 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

10 entries across 10 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.14.1 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.14.2 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.15.0 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.16.0 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.14.4 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.14.3 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.16.1 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.15.2 test/dummy/db/migrate/20160307182229_create_products.rb
disco_app-0.14.0 test/dummy/db/migrate/20160307182229_create_products.rb