Class: CreateShells
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateShells
- Defined in:
- lib/generators/run_shell/templates/create_shells.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 |
# File 'lib/generators/run_shell/templates/create_shells.rb', line 12 def self.down drop_table :shells end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/run_shell/templates/create_shells.rb', line 2 def self.up create_table :shells do |t| t.string :file_path t.string :content t.string :whodunnit t.boolean :result t.datetime :created_at end end |