Class: CreateEntries
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateEntries
- Defined in:
- lib/generators/jabe/templates/migrations/create_entries.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/jabe/templates/migrations/create_entries.rb', line 13 def self.down drop_table :entries end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/jabe/templates/migrations/create_entries.rb', line 2 def self.up create_table :entries do |t| t.string :cached_slug t.string :title t.text :body t.boolean :draft t.datetime :published_at t. end end |