Class: CreatePyradise

Inherits:
Sequel::Migration
  • Object
show all
Defined in:
lib/pyradise/migrate.rb

Instance Method Summary collapse

Instance Method Details

#downObject



16
# File 'lib/pyradise/migrate.rb', line 16

def down() drop_table :products end

#upObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/pyradise/migrate.rb', line 4

def up
  create_table :products do
    primary_key :id
    varchar :sid
    varchar :name
    varchar :store
    integer :price
    text    :prices
  end
end