AutoCommit Fre Jul 31 21:03:04 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-31 21:03:04 +02:00
26 changed files with 340 additions and 23 deletions

View File

@@ -0,0 +1,19 @@
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.integer :user_id
t.integer :commentable_id
t.string :commentable_type
t.text :text
t.integer :parent_id
t.integer :lft
t.integer :rgt
t.integer :depth
t.boolean :hidden
t.boolean :official
t.boolean :intern
t.boolean :anonym
t.timestamps
end
end
end

View File

@@ -0,0 +1,5 @@
class AddIconToChoice < ActiveRecord::Migration
def change
add_column :survey_choices, :icon, :string
end
end