diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-21 11:50:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-21 11:50:22 +0000 |
commit | 0b4d4db131304eac84dc90b289a95db3410a2bfe (patch) | |
tree | b5ad6934b897635e594ca089f06fe953d082ed53 /db/migrate | |
parent | a1b12335ab6a01ea6e7dcc1df490db16136c8c2a (diff) | |
download | redmine-0b4d4db131304eac84dc90b289a95db3410a2bfe.tar.gz redmine-0b4d4db131304eac84dc90b289a95db3410a2bfe.zip |
settings are now stored in the database (config_custom.rb no more used) and editable through the application in: Admin -> Settings
git-svn-id: http://redmine.rubyforge.org/svn/trunk@167 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/017_create_settings.rb | 12 |
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 |