git-svn-id: http://redmine.rubyforge.org/svn/trunk@1703 e93f8b46-1217-0410-a6f0-8f06a7374b81pull/351/head
parent
d05bcda2ba
commit
3a4855d070
@ -0,0 +1,6 @@ |
||||
class Meeting < ActiveRecord::Base |
||||
belongs_to :project |
||||
|
||||
acts_as_activity_provider :timestamp => 'scheduled_on', |
||||
:find_options => { :include => :project } |
||||
end |
@ -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 |
@ -1,4 +1,5 @@ |
||||
# Sample plugin |
||||
label_plugin_example: Sample Plugin |
||||
label_meeting_plural: Meetings |
||||
text_say_hello: Plugin say 'Hello' |
||||
text_say_goodbye: Plugin say 'Good bye' |
||||
|
@ -1,4 +1,5 @@ |
||||
# Sample plugin |
||||
label_plugin_example: Plugin exemple |
||||
label_meeting_plural: Meetings |
||||
text_say_hello: Plugin dit 'Bonjour' |
||||
text_say_goodbye: Plugin dit 'Au revoir' |
||||
|
Loading…
Reference in new issue