Sha256: 756f7c949f5714034ac85b369467406239ccfe842917d0316797f6162c88c10e

Contents?: true

Size: 265 Bytes

Versions: 17

Compression:

Stored size: 265 Bytes

Contents

class CreateRoles < ActiveRecord::Migration[7.0]
  def change
    create_table :roles, if_not_exists: true do |t|
      t.string :name
      t.bigint :lock_version

      t.timestamps
    end
    add_index :roles, :name, unique: true, if_not_exists: true
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
thecore_auth_commons-3.2.2 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.2.1 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.1.7 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.1.5 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.1.4 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.1.3 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.1.2 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.1.1 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.1.0 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.13 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.12 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.11 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.10 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.9 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.8 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.7 db/migrate/20160209153811_create_roles.rb
thecore_auth_commons-3.0.6 db/migrate/20160209153811_create_roles.rb