Use only new hash syntax
This commit is contained in:
parent
3901973fd6
commit
5289f41eb5
72 changed files with 179 additions and 181 deletions
|
|
@ -1,9 +1,9 @@
|
|||
class CreateComments < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :comments do |t|
|
||||
t.string :title, :limit => 50, :default => ""
|
||||
t.string :title, limit: 50, default: ""
|
||||
t.text :comment
|
||||
t.references :commentable, :polymorphic => true
|
||||
t.references :commentable, polymorphic: true
|
||||
t.references :user
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue