Class: CreateFlatpage
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFlatpage
- Defined in:
- lib/generators/flatpages/install/templates/create_flatpage.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/generators/flatpages/install/templates/create_flatpage.rb', line 2 def change create_table :flatpages do |t| t.string :name, null: false t.string :path, null: false t.text :text end end |