Sha256: 4ef04a6bddf828b0ce3e22855f6c9e3be77024b0bd8ad7bcb43459c7deba591d
Contents?: true
Size: 367 Bytes
Versions: 19
Compression:
Stored size: 367 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 end add_index :shops, :shopify_domain, unique: true end end end
Version data entries
19 entries across 19 versions & 1 rubygems