foodsoft/db/migrate/20090325175756_create_pages.rb

16 lines
239 B
Ruby
Raw Normal View History

class CreatePages < ActiveRecord::Migration
def self.up
create_table :pages do |t|
t.string :title
t.text :body
t.string :permalink
t.timestamps
end
end
def self.down
drop_table :pages
end
end