Class: CreatePages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePages
- Defined in:
- lib/generators/cms/templates/migrations/create_pages.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/cms/templates/migrations/create_pages.rb', line 2 def change create_table :pages do |t| t.string :name t.string :titulo t.text :content t.integer :position t.integer :active t. end end |