summaryrefslogtreecommitdiffstats
path: root/db/migrate/017_create_settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/017_create_settings.rb')
-rw-r--r--db/migrate/017_create_settings.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/017_create_settings.rb b/db/migrate/017_create_settings.rb
new file mode 100644
index 000000000..99f96adf8
--- /dev/null
+++ b/db/migrate/017_create_settings.rb
@@ -0,0 +1,12 @@
+class CreateSettings < ActiveRecord::Migration
+ def self.up
+ create_table :settings, :force => true do |t|
+ t.column "name", :string, :limit => 30, :default => "", :null => false
+ t.column "value", :text
+ end
+ end
+
+ def self.down
+ drop_table :settings
+ end
+end