Sha256: d4d8da76fe67e4715a6b7976295767f764f4443b7a05015f060ceec3541d8468

Contents?: true

Size: 542 Bytes

Versions: 174

Compression:

Stored size: 542 Bytes

Contents

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

174 entries across 174 versions & 1 rubygems

Version Path
marty-14.3.0 db/migrate/098_create_marty_api_auths.rb
marty-14.0.0 db/migrate/098_create_marty_api_auths.rb
marty-13.0.2 db/migrate/098_create_marty_api_auths.rb
marty-11.0.0 db/migrate/098_create_marty_api_auths.rb
marty-10.0.3 db/migrate/098_create_marty_api_auths.rb
marty-10.0.2 db/migrate/098_create_marty_api_auths.rb
marty-10.0.0 db/migrate/098_create_marty_api_auths.rb
marty-9.5.1 db/migrate/098_create_marty_api_auths.rb
marty-9.5.0 db/migrate/098_create_marty_api_auths.rb
marty-9.3.3 db/migrate/098_create_marty_api_auths.rb
marty-9.3.2 db/migrate/098_create_marty_api_auths.rb
marty-9.3.0 db/migrate/098_create_marty_api_auths.rb
marty-8.5.0 db/migrate/098_create_marty_api_auths.rb
marty-8.4.1 db/migrate/098_create_marty_api_auths.rb
marty-8.3.1 db/migrate/098_create_marty_api_auths.rb
marty-8.2.0 db/migrate/098_create_marty_api_auths.rb
marty-8.0.0 db/migrate/098_create_marty_api_auths.rb
marty-6.1.0 db/migrate/098_create_marty_api_auths.rb
marty-5.2.0 db/migrate/098_create_marty_api_auths.rb
marty-5.1.4 db/migrate/098_create_marty_api_auths.rb