Sha256: 0ee529943882cea006f5c47e3f84439a9559eda4e16cb308a017f725ed068b30
Contents?: true
Size: 854 Bytes
Versions: 16
Compression:
Stored size: 854 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
16 entries across 16 versions & 1 rubygems