Sha256: 963113aa52c65bb7024e769129af3c1467a6096d0323e8595970172d4260afa7

Contents?: true

Size: 325 Bytes

Versions: 10

Compression:

Stored size: 325 Bytes

Contents

class CreateCarts < ActiveRecord::Migration[4.2]

def change
    create_table :carts do |t|
      t.integer :shop_id, limit: 8
      t.string :token
      t.jsonb :data

      t.timestamps null: false
    end
    add_foreign_key :carts, :disco_app_shops, column: :shop_id
    add_index :carts, :token, unique: true
  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/20161105054746_create_carts.rb
disco_app-0.14.1 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.14.2 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.15.0 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.16.0 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.14.4 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.14.3 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.16.1 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.15.2 test/dummy/db/migrate/20161105054746_create_carts.rb
disco_app-0.14.0 test/dummy/db/migrate/20161105054746_create_carts.rb