Sha256: 2648c0d1ef7dd73810dd4c4d9f8ffe9cc78c62e5b33699ec0ddd3fcbfabe23c7
Contents?: true
Size: 379 Bytes
Versions: 24
Compression:
Stored size: 379 Bytes
Contents
class CreateShopsIfNotExistent < ActiveRecord::Migration def change unless table_exists? :shops or table_exists? :disco_app_shops create_table :shops do |t| t.string :shopify_domain, null: false t.string :shopify_token, null: false t.timestamps null: false end add_index :shops, :shopify_domain, unique: true end end end
Version data entries
24 entries across 24 versions & 1 rubygems