summaryrefslogtreecommitdiff
path: root/db/migrate/20111006082945_create_phone_books.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20111006082945_create_phone_books.rb')
-rw-r--r--db/migrate/20111006082945_create_phone_books.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20111006082945_create_phone_books.rb b/db/migrate/20111006082945_create_phone_books.rb
new file mode 100644
index 0000000..7a4e967
--- /dev/null
+++ b/db/migrate/20111006082945_create_phone_books.rb
@@ -0,0 +1,17 @@
+class CreatePhoneBooks < ActiveRecord::Migration
+ def self.up
+ create_table :phone_books do |t|
+ t.string :name
+ t.string :description
+ t.integer :phone_bookable_id
+ t.string :phone_bookable_type
+ t.string :state
+ t.integer :position
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :phone_books
+ end
+end