From dbcf2065b86d610bc714b362d253664d81166e87 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 23 Sep 2007 18:50:53 +0000 Subject: Added a sample plugin. git-svn-id: http://redmine.rubyforge.org/svn/trunk@753 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- extra/sample_plugin/db/migrate/001_create_some_models.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 extra/sample_plugin/db/migrate/001_create_some_models.rb (limited to 'extra/sample_plugin/db') 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 -- cgit v1.2.3