Sha256: b16a4b4f73ead75aa66d9f584e186ce59ea57973ef65998bf71655fefa209c3a

Contents?: true

Size: 230 Bytes

Versions: 15

Compression:

Stored size: 230 Bytes

Contents

class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.string :name
      t.string :nombre
      t.timestamps
    end
  end

  def self.down
    drop_table :categories
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
navi-0.2.1 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.2.0 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.1.4 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.1.3 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.17 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.16 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.15 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.14 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.13 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.12 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.11 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.10 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.9 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.6 spec/dummy/db/migrate/20110607155202_create_categories.rb
navi-0.0.2 spec/dummy/db/migrate/20110607155202_create_categories.rb