From a4552317d2b745425aae04727506df08b207ec4f Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 7 Jan 2008 07:06:54 +0000 Subject: [PATCH] missing migration git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@83 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- db/migrate/011_create_styles.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 db/migrate/011_create_styles.rb diff --git a/db/migrate/011_create_styles.rb b/db/migrate/011_create_styles.rb new file mode 100644 index 0000000..71e7c36 --- /dev/null +++ b/db/migrate/011_create_styles.rb @@ -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