Sha256: 626de92b5425a92918dedc0ef066cbd3a88d1b7bc3d6bdacb7607875bdd80d7c

Contents?: true

Size: 559 Bytes

Versions: 16

Compression:

Stored size: 559 Bytes

Contents

require 'mcfly'

class CreateMartyApiAuths < McflyMigration
  include Marty::Migrations

  def change
    create_table :marty_api_auths do |t|
      t.string :app_name,    null: false, limit: 255
      t.string :api_key,     null: false, limit: 255
      t.string :script_name, null: false, limit: 255
    end

    add_mcfly_unique_index(Marty::ApiAuth)
    add_index :marty_api_auths, [:app_name,
                                 :script_name,
                                 :obsoleted_dt],
    unique: true,
    name: 'unique_marty_api_auths_2'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
marty-0.5.28 db/migrate/098_create_marty_api_auths.rb
marty-0.5.27 db/migrate/098_create_marty_api_auths.rb
marty-0.5.26 db/migrate/098_create_marty_api_auths.rb
marty-0.5.25 db/migrate/098_create_marty_api_auths.rb
marty-0.5.24 db/migrate/098_create_marty_api_auths.rb
marty-0.5.23 db/migrate/098_create_marty_api_auths.rb
marty-0.5.21 db/migrate/098_create_marty_api_auths.rb
marty-0.5.20 db/migrate/098_create_marty_api_auths.rb
marty-0.5.19 db/migrate/098_create_marty_api_auths.rb
marty-0.5.18 db/migrate/098_create_marty_api_auths.rb
marty-0.5.17 db/migrate/098_create_marty_api_auths.rb
marty-0.5.16 db/migrate/098_create_marty_api_auths.rb
marty-0.5.15 db/migrate/098_create_marty_api_auths.rb
marty-0.5.14 db/migrate/098_create_marty_api_auths.rb
marty-0.5.13 db/migrate/098_create_marty_api_auths.rb
marty-0.5.12 db/migrate/098_create_marty_api_auths.rb