Module: Ros::Migrations::Create::Tenant

Defined in:
lib/migrations.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



9
10
11
12
13
14
15
# File 'lib/migrations.rb', line 9

def change
  create_table :tenants do |t|
    t.string :schema_name, null: false, index: { unique: true }

    t.timestamps null: false
  end
end