Class: CreatePages

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/manifest/install/templates/create_pages.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/generators/manifest/install/templates/create_pages.rb', line 2

def change
  create_table :pages do |t|
    t.string :title
    t.string :slug

    t.timestamps
  end
end