Sha256: e7c505564d349abcec6f23cc2b2a44fc341ea83220c69a7d3d2b474fe0088ef4

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

class CreateShops < ActiveRecord::Migration[<%= rails_migration_version %>]
  def self.up
    create_table :shops  do |t|
      t.string :spiffy_stores_domain, null: false
      t.string :spiffy_stores_token, null: false
      t.timestamps
    end

    add_index :shops, :spiffy_stores_domain, unique: true
  end

  def self.down
    drop_table :shops
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spiffy_stores_app-8.2.11 lib/generators/spiffy_stores_app/shop_model/templates/db/migrate/create_shops.erb
spiffy_stores_app-8.2.10 lib/generators/spiffy_stores_app/shop_model/templates/db/migrate/create_shops.erb
spiffy_stores_app-8.2.9 lib/generators/spiffy_stores_app/shop_model/templates/db/migrate/create_shops.erb
spiffy_stores_app-8.2.8 lib/generators/spiffy_stores_app/shop_model/templates/db/migrate/create_shops.erb
spiffy_stores_app-8.2.7 lib/generators/spiffy_stores_app/shop_model/templates/db/migrate/create_shops.erb
spiffy_stores_app-8.2.6 lib/generators/spiffy_stores_app/shop_model/templates/db/migrate/create_shops.erb