Sha256: 61cc58e480dd39cf6174cfc09afe6f64f99ece7f25210a75be3c89105969c3c6

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

class CreateHatchyProjectAccounts < ActiveRecord::Migration
  def change
    create_table :hatchy_project_accounts do |t|
      t.belongs_to  :project
      t.belongs_to  :bank
      t.string      :account_type
      t.string      :email
      t.string      :phone
      t.string      :account
      t.string      :account_digit
      t.string      :owner_name
      t.string      :owner_document 
      t.string      :address_street
      t.string      :address_number
      t.string      :address_city
      t.string      :address_state
      t.string      :address_zip
      t.timestamps
    end
    add_index :hatchy_project_accounts, :project_id
    add_index :hatchy_project_accounts, :bank_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre db/migrate/20160111175158_create_hatchy_project_accounts.rb
hatchy-0.0.7.pre db/migrate/20160111175158_create_hatchy_project_accounts.rb