summaryrefslogtreecommitdiffstats
path: root/extra/sample_plugin/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-23 18:50:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-23 18:50:53 +0000
commitdbcf2065b86d610bc714b362d253664d81166e87 (patch)
treea217cfdd7756ad499f2b9c4ccec0d3dc88e8acbb /extra/sample_plugin/db
parente4f0864e3a7f17f0e8a282aad29202f53bf11139 (diff)
downloadredmine-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.rb13
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