Sha256: 00d3c0ca41fa2738172fde63befa1652799214a0102099ba1310339fc15546dd
Contents?: true
Size: 762 Bytes
Versions: 7
Compression:
Stored size: 762 Bytes
Contents
class CreateAccounts < ActiveRecord::Migration def self.up create_table :accounts, force: true do |t| t.string :uuid, limit: 36 t.references :user t.integer :assigned_to t.string :name, limit: 64, null: false, default: "" t.string :access, limit: 8, default: "Public" # %w(Private Public Shared) t.string :website, limit: 64 t.string :tall_free_phone, limit: 32 t.string :phone, limit: 32 t.string :fax, limit: 32 t.string :billing_address t.string :shipping_address t.datetime :deleted_at t.timestamps end add_index :accounts, [:user_id, :name, :deleted_at], unique: true add_index :accounts, :assigned_to end def self.down drop_table :accounts end end
Version data entries
7 entries across 7 versions & 2 rubygems