Class: CreatePress
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePress
- Defined in:
- lib/generators/templates/db/migrate/create_press.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/templates/db/migrate/create_press.rb', line 13 def self.down drop_table :press end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/templates/db/migrate/create_press.rb', line 2 def self.up create_table :press do |t| t.string :title t.string :publication t.datetime :published_at t.text :description t.string :url t. end end |