Class: CreateTenants

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/landagent/templates/create_tenants.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/generators/landagent/templates/create_tenants.rb', line 2

def change
  create_table :tenants do |t|
    t.string :subdomain
    t.string :name
    t.string :description
    t.string :code
    t.string :locale

    t.timestamps
  end
end