Sha256: 2fa8cca4d627f06690bffbcc261b00c19ed270dee41588c406f224486157f859

Contents?: true

Size: 372 Bytes

Versions: 7

Compression:

Stored size: 372 Bytes

Contents

class CreateGroups < ActiveRecord::Migration[6.0]
  def change
    create_table :groups do |t|
      t.string :ident, limit: 50
      t.references :system, foreign_key: true, index: true
      t.string :full_ident, limit: 70

      t.timestamps
    end
    add_index :groups, [:ident, :system_id], unique: true
    add_index :groups, [:full_ident], unique: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
anoubis-1.0.12 db/migrate/20181018111925_create_groups.rb
anoubis-1.0.11 db/migrate/20181018111925_create_groups.rb
anoubis-1.0.10 db/migrate/20181018111925_create_groups.rb
anoubis-1.0.8 db/migrate/20181018111925_create_groups.rb
anoubis-1.0.7 db/migrate/20181018111925_create_groups.rb
anoubis-1.0.1 db/migrate/20181018111925_create_groups.rb
anoubis-1.0.0 db/migrate/20181018111925_create_groups.rb