Sha256: e01246273136c00ee3b461f3fd05bb5c4cf4cb184ff9d39c5e331767f695b95a

Contents?: true

Size: 205 Bytes

Versions: 5

Compression:

Stored size: 205 Bytes

Contents

class CreateCompanies < ActiveRecord::Migration
  def self.up
    create_table :companies do |c|
      c.string :cnpj
      c.string :name
    end
  end

  def self.down
    drop_table :companies
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
validates_cnpj-1.1.3 spec/fake_app/db/create_companies.rb
validates_cnpj-1.1.2 spec/fake_app/db/create_companies.rb
validates_cnpj-1.1.1 spec/fake_app/db/create_companies.rb
validates_cnpj-1.1.0 spec/fake_app/db/create_companies.rb
validates_cnpj-1.0.0 spec/fake_app/db/create_companies.rb