Sha256: cbe34e00a6fc5bf33044170718d5da713aaf81374f74713cc1595c07e4317993

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

class CreateTenants < ActiveRecord::Migration[6.0]
  def change
    create_table :tenants do |t|
      t.string :title, limit: 100
      t.string :ident, limit: 10
      t.integer :state, default: 0

      t.timestamps
    end
    add_index :tenants, [:title], unique: true
    add_index :tenants, [:ident], unique: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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