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-8.2.5 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-8.2.4 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-8.2.2 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-8.2.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-8.2.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-8.1.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-8.0.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-7.4.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-7.3.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-7.2.11 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-7.2.10 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb