Sha256: 73e649d9bcaf320ea06e766333ff27bfcde088cf95e2b1f8d8f832d1b2d4618f

Contents?: true

Size: 462 Bytes

Versions: 8

Compression:

Stored size: 462 Bytes

Contents

class CreateTenants < ActiveRecord::Migration[5.0]
    def change
        create_table :tenants do |t|
            t.string :slug, :email, null: false
            t.text   :identifier, :name, null: false
            t.text :address, :phone_number
            t.integer :subscription, limit: 1
            t.timestamps null: false
        end
        add_index :tenants, :slug, :unique => true
        add_index :tenants, :identifier, :unique => true
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 db/migrate/20170530120001_create_tenants.rb
hippo-fw-0.9.8 db/migrate/20170530120001_create_tenants.rb
hippo-fw-0.9.7 db/migrate/20170530120001_create_tenants.rb
hippo-fw-0.9.6 db/migrate/20170530120001_create_tenants.rb
hippo-fw-0.9.5 db/migrate/20170530120001_create_tenants.rb
hippo-fw-0.9.4 db/migrate/20170530120001_create_tenants.rb
hippo-fw-0.9.3 db/migrate/20170530120001_create_tenants.rb
hippo-fw-0.9.2 db/migrate/01_create_tenants.rb