Class: CreateSmsters
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSmsters
- Defined in:
- lib/generators/smster/install/templates/create_smsters.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
17 18 19 |
# File 'lib/generators/smster/install/templates/create_smsters.rb', line 17 def down drop_table :smsters end |
#up ⇒ Object
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. end end |