Sha256: 71c150d3bd05632d6384023846a21e4982da4a67f54118990b86b5c42c79818b

Contents?: true

Size: 830 Bytes

Versions: 2

Compression:

Stored size: 830 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.timestamp   :send_to_draft_at
      t.timestamp   :send_to_analysis_at
      t.timestamp   :send_to_rejected_at
      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.6.pre db/migrate/20160111175158_create_hatchy_project_accounts.rb
hatchy-0.0.5.pre db/migrate/20160111175158_create_hatchy_project_accounts.rb