Sha256: ad52ff8e7e07e61d6da6817bb542cd040bbfe68ec415ee4973e0c68c6f3f4005

Contents?: true

Size: 326 Bytes

Versions: 7

Compression:

Stored size: 326 Bytes

Contents

class CreateDiscoAppUsers < ActiveRecord::Migration[5.1]
  def change
    create_table :disco_app_users do |t|
      t.integer :shop_id, limit: 8
      t.string :first_name
      t.string :last_name
      t.string :email

      t.timestamps null: false
    end
    add_index :disco_app_users, :shop_id, unique: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.14.1 db/migrate/20170327214540_create_disco_app_users.rb
disco_app-0.14.2 db/migrate/20170327214540_create_disco_app_users.rb
disco_app-0.15.0 db/migrate/20170327214540_create_disco_app_users.rb
disco_app-0.14.4 db/migrate/20170327214540_create_disco_app_users.rb
disco_app-0.14.3 db/migrate/20170327214540_create_disco_app_users.rb
disco_app-0.15.2 db/migrate/20170327214540_create_disco_app_users.rb
disco_app-0.14.0 db/migrate/20170327214540_create_disco_app_users.rb