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-19.0.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.1.2 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.1.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.1.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.0.4 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.0.3 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.0.2 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.0.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-18.0.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.2.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.2.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.1.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.1.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.0.5 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.0.4 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.0.3 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.0.2 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.0.1 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-17.0.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
shopify_app-16.1.0 lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb