Class: CreateCategories

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/dircat/cat_on_sqlite/migration/01_create_categories.rb

Class Method Summary collapse

Class Method Details

.downObject



9
10
11
# File 'lib/dircat/cat_on_sqlite/migration/01_create_categories.rb', line 9

def self.down
  drop_table :categories
end

.upObject



3
4
5
6
7
# File 'lib/dircat/cat_on_sqlite/migration/01_create_categories.rb', line 3

def self.up
  create_table :categories do |t|
    t.string :name, :null => false
  end
end