diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-23 18:50:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-23 18:50:53 +0000 |
commit | dbcf2065b86d610bc714b362d253664d81166e87 (patch) | |
tree | a217cfdd7756ad499f2b9c4ccec0d3dc88e8acbb /extra/sample_plugin/db | |
parent | e4f0864e3a7f17f0e8a282aad29202f53bf11139 (diff) | |
download | redmine-dbcf2065b86d610bc714b362d253664d81166e87.tar.gz redmine-dbcf2065b86d610bc714b362d253664d81166e87.zip |
Added a sample plugin.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@753 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/sample_plugin/db')
-rw-r--r-- | extra/sample_plugin/db/migrate/001_create_some_models.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/sample_plugin/db/migrate/001_create_some_models.rb b/extra/sample_plugin/db/migrate/001_create_some_models.rb new file mode 100644 index 000000000..39d58a649 --- /dev/null +++ b/extra/sample_plugin/db/migrate/001_create_some_models.rb @@ -0,0 +1,13 @@ +# Sample plugin migration +# Use rake db:migrate_plugins to migrate installed plugins +class CreateSomeModels < ActiveRecord::Migration + def self.up + create_table :example_plugin_model, :force => true do |t| + t.column "example_attribute", :integer + end + end + + def self.down + drop_table :example_plugin_model + end +end |