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