summaryrefslogtreecommitdiffstats
path: root/db/migrate/20090401231134_add_active_field_to_enumerations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20090401231134_add_active_field_to_enumerations.rb')
-rw-r--r--db/migrate/20090401231134_add_active_field_to_enumerations.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090401231134_add_active_field_to_enumerations.rb b/db/migrate/20090401231134_add_active_field_to_enumerations.rb
new file mode 100644
index 000000000..55824fa65
--- /dev/null
+++ b/db/migrate/20090401231134_add_active_field_to_enumerations.rb
@@ -0,0 +1,9 @@
+class AddActiveFieldToEnumerations < ActiveRecord::Migration
+ def self.up
+ add_column :enumerations, :active, :boolean, :default => true, :null => false
+ end
+
+ def self.down
+ remove_column :enumerations, :active
+ end
+end