Nuevo plugin Redmine Questions 0.0.7 light
This commit is contained in:
parent
c5b56fffec
commit
7de6fb4627
51 changed files with 2162 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
class ActsAsVotableMigration < ActiveRecord::Migration
|
||||
def self.up
|
||||
ActiveRecord::Base.create_votable_table
|
||||
add_column :messages, :cached_votes_total, :integer, :default => 0
|
||||
add_column :messages, :cached_votes_up, :integer, :default => 0
|
||||
add_column :messages, :cached_votes_down, :integer, :default => 0
|
||||
add_index :messages, :cached_votes_total
|
||||
add_index :messages, :cached_votes_up
|
||||
add_index :messages, :cached_votes_down
|
||||
end
|
||||
|
||||
def self.down
|
||||
ActiveRecord::Base.drop_votable_table
|
||||
remove_column :messages, :cached_votes_total
|
||||
remove_column :messages, :cached_votes_up
|
||||
remove_column :messages, :cached_votes_down
|
||||
end
|
||||
end
|
|
@ -0,0 +1,10 @@
|
|||
class AddViewingMigration < ActiveRecord::Migration
|
||||
|
||||
def self.up
|
||||
ActiveRecord::Base.create_viewings_table
|
||||
end
|
||||
|
||||
def self.down
|
||||
ActiveRecord::Base.drop_viewings_table
|
||||
end
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
class AddTaggingMigration < ActiveRecord::Migration
|
||||
def up
|
||||
ActiveRecord::Base.create_taggable_table
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue