Merged trunk r1773.
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1774 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Sample plugin migration
|
||||
# Use rake db:migrate_plugins to migrate installed plugins
|
||||
class CreateMeetings < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :meetings do |t|
|
||||
t.column :project_id, :integer, :null => false
|
||||
t.column :description, :string
|
||||
t.column :scheduled_on, :datetime
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :meetings
|
||||
end
|
||||
end
|
||||
@@ -1,13 +0,0 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user