summaryrefslogtreecommitdiff
path: root/db/migrate/20130222074610_create_groups.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20130222074610_create_groups.rb')
-rw-r--r--db/migrate/20130222074610_create_groups.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20130222074610_create_groups.rb b/db/migrate/20130222074610_create_groups.rb
new file mode 100644
index 0000000..e5848b9
--- /dev/null
+++ b/db/migrate/20130222074610_create_groups.rb
@@ -0,0 +1,14 @@
+class CreateGroups < ActiveRecord::Migration
+ def self.up
+ create_table :groups do |t|
+ t.string :name
+ t.boolean :active
+ t.string :comment
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :groups
+ end
+end