Class: CreateSmsters

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/smster/install/templates/create_smsters.rb

Instance Method Summary collapse

Instance Method Details

#downObject



17
18
19
# File 'lib/generators/smster/install/templates/create_smsters.rb', line 17

def down
  drop_table :smsters
end

#upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/smster/install/templates/create_smsters.rb', line 2

def up
  create_table :smsters do |t|
    t.string :text
    t.string :name
    t.string :from
    t.string :to
    t.string :code
    t.string :type
    t.integer :status
    t.string :status_message

    t.timestamps
  end
end