unpack brazilian-rails

This commit is contained in:
2013-07-14 11:09:25 -04:00
parent 7d287fe530
commit e563725dc5
131 changed files with 5496 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# -*- encoding : utf-8 -*-
class CreateTestingStructure < ActiveRecord::Migration
def self.up
create_table :empresas do |t|
t.string :nome
t.string :cnpj
end
create_table :pessoas do |t|
t.string :nome
t.string :cpf
end
create_table :companies do |t|
t.string :nome
t.string :cnpj
end
create_table :people do |t|
t.string :nome
t.string :cpf
end
end
def self.down
drop_table :pessoas
drop_table :empresas
drop_table :companies
drop_table :people
end
end