missing migration

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@83 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-01-07 07:06:54 +00:00
parent 9abc7a2d1f
commit a4552317d2
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
class CreateStyles < ActiveRecord::Migration
def self.up
create_table :styles do |t|
t.column :title, :string
t.column :parent_id, :integer
t.column :position, :integer
t.column :page_id, :integer
t.column :gravity_bottom, :decimal, :precision => 4
t.column :gravity_top, :decimal, :precision => 4
t.column :originating_location, :string
end
add_index :styles, :title
add_index :styles, :parent_id
end
def self.down
drop_table :styles
end
end