Class: CreateTestimonials
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateTestimonials
- Defined in:
- lib/generators/templates/db/migrate/20101122222055_create_testimonials.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/templates/db/migrate/20101122222055_create_testimonials.rb', line 13 def self.down drop_table :testimonials end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/templates/db/migrate/20101122222055_create_testimonials.rb', line 2 def self.up create_table :testimonials do |t| t.string :name t.string :location t.text :description t.boolean :featured t. end end |