chore: rubocop
chore: fix api test conventions chore: rubocop -A spec/ chore: more rubocop -A fix failing test rubocop fixes removes helper methods that are in my opinion dead code more rubocop fixes rubocop -a --auto-gen-config
This commit is contained in:
parent
f6fb804bbe
commit
fb2b4d8a8a
331 changed files with 4263 additions and 4507 deletions
|
|
@ -1,16 +1,16 @@
|
|||
class CreateComments < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :comments, :force => true do |t|
|
||||
t.column :title, :string, :limit => 50, :default => ""
|
||||
t.column :comment, :string, :default => ""
|
||||
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
|
||||
t.column :user_id, :integer, :default => 0, :null => false
|
||||
create_table :comments, force: true do |t|
|
||||
t.column :title, :string, limit: 50, default: ''
|
||||
t.column :comment, :string, default: ''
|
||||
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
|
||||
t.column :user_id, :integer, default: 0, null: false
|
||||
end
|
||||
|
||||
add_index :comments, ["user_id"], :name => "fk_comments_user"
|
||||
add_index :comments, ['user_id'], name: 'fk_comments_user'
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue