Sha256: f17db27417f78e72d7cb4bb1047fe7501c3a988f58eb02b63917244b1ac91fee

Contents?: true

Size: 344 Bytes

Versions: 131

Compression:

Stored size: 344 Bytes

Contents

class CreateShops < ActiveRecord::Migration[<%= rails_migration_version %>]
  def self.up
    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

  def self.down
    drop_table :shops
  end
end

Version data entries

131 entries across 131 versions & 2 rubygems

Version Path
shopify_app-22.4.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-22.3.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-22.3.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
ruby_shopify_app-1.3.3 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
ruby_shopify_app-1.3.2 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
ruby_shopify_app-1.3.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
ruby_shopify_app-1.3.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
ruby_shopify_app-1.2.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-22.2.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-22.2.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
ruby_shopify_app-1.1.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-22.1.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-22.0.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-22.00.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-21.10.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-21.9.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-21.8.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-21.8.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-21.7.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-21.6.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb