Class: CreateDircatProperties

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

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/dircat/cat_on_sqlite/migration/00_create_dircat_properties.rb', line 10

def self.down
  drop_table :dircat_properties
end

.upObject



3
4
5
6
7
8
# File 'lib/dircat/cat_on_sqlite/migration/00_create_dircat_properties.rb', line 3

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