Sha256: 15d368bc0be3c7a8f257be42cfd6e799a969fc04baaf4655e7075d22413d2f63

Contents?: true

Size: 249 Bytes

Versions: 30

Compression:

Stored size: 249 Bytes

Contents

class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.string :title
      t.string :summary
    end
    add_index :categories, :title
  end
  
  def self.down
    drop_table :categories
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
migrant-1.5.0 test/verified_output/migrations/create_categories.rb
migrant-1.4.3 test/verified_output/migrations/create_categories.rb
migrant-1.4.1 test/verified_output/migrations/create_categories.rb
migrant-1.4.0 test/verified_output/migrations/create_categories.rb
migrant-1.3.2 test/verified_output/migrations/create_categories.rb
migrant-1.3.1 test/verified_output/migrations/create_categories.rb
migrant-1.3.0 test/verified_output/migrations/create_categories.rb
migrant-1.2.8 test/verified_output/migrations/create_categories.rb
migrant-1.2.7 test/verified_output/migrations/create_categories.rb
migrant-1.2.5 test/verified_output/migrations/create_categories.rb
migrant-1.2.2 test/verified_output/migrations/create_categories.rb
migrant-1.2.1 test/verified_output/migrations/create_categories.rb
migrant-1.2.0 test/verified_output/migrations/create_categories.rb
migrant-1.1.2 test/verified_output/migrations/create_categories.rb
migrant-1.1.1 test/verified_output/migrations/create_categories.rb
migrant-1.1.0 test/verified_output/migrations/create_categories.rb
migrant-1.0.2 test/verified_output/migrations/create_categories.rb
migrant-1.0.1 test/verified_output/migrations/create_categories.rb
migrant-1.0.0 test/verified_output/migrations/create_categories.rb
migrant-0.2.4 test/verified_output/migrations/create_categories.rb