Run rubocop --fix-layout and remove encoding comments
This commit is contained in:
parent
fa63e6e81d
commit
ea2862fdef
283 changed files with 1164 additions and 1969 deletions
|
|
@ -6,13 +6,13 @@ class CreateComments < ActiveRecord::Migration[4.2]
|
|||
t.column :created_at, :datetime, :null => false
|
||||
t.column :commentable_id, :integer, :default => 0, :null => false
|
||||
t.column :commentable_type, :string, :limit => 15,
|
||||
:default => "", :null => false
|
||||
:default => "", :null => false
|
||||
t.column :user_id, :integer, :default => 0, :null => false
|
||||
end
|
||||
|
||||
|
||||
add_index :comments, ["user_id"], :name => "fk_comments_user"
|
||||
end
|
||||
|
||||
|
||||
def self.down
|
||||
drop_table :comments
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue