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