apply StringLiterals cop (remove double quotes, unless there is string interpolation)
This commit is contained in:
parent
f91467a00a
commit
b7c45718d8
45 changed files with 275 additions and 109 deletions
|
|
@ -2,8 +2,8 @@ class DeviseCreateUsers < ActiveRecord::Migration
|
|||
def up
|
||||
create_table(:users) do |t|
|
||||
## Database authenticatable
|
||||
t.string :email, null: false, default: ""
|
||||
t.string :encrypted_password, null: false, default: ""
|
||||
t.string :email, null: false, default: ''
|
||||
t.string :encrypted_password, null: false, default: ''
|
||||
|
||||
## Recoverable
|
||||
t.string :reset_password_token
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ class CreatePeopleTable < ActiveRecord::Migration
|
|||
def up
|
||||
create_table :people do |t|
|
||||
t.string :guid, null: false
|
||||
t.string :first_name, default: ""
|
||||
t.string :last_name, default: ""
|
||||
t.string :public_name, default: ""
|
||||
t.string :company, default: ""
|
||||
t.string :first_name, default: ''
|
||||
t.string :last_name, default: ''
|
||||
t.string :public_name, default: ''
|
||||
t.string :company, default: ''
|
||||
t.string :email, null: false
|
||||
t.boolean :email_public
|
||||
t.string :avatar_file_name
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class CreateTracksTable < ActiveRecord::Migration
|
|||
t.references :conference
|
||||
t.string :name, null: false
|
||||
t.text :description
|
||||
t.string :color, default: "#ffffff"
|
||||
t.string :color, default: '#ffffff'
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ class CreateEventsTable < ActiveRecord::Migration
|
|||
t.string :title, null: false
|
||||
t.string :subtitle
|
||||
t.integer :time_slots
|
||||
t.string :state, null: false, default: "new"
|
||||
t.string :progress, null: false, default: "new"
|
||||
t.string :state, null: false, default: 'new'
|
||||
t.string :progress, null: false, default: 'new'
|
||||
t.string :language
|
||||
t.datetime :start_time
|
||||
t.text :abstract
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ class CreateEventPeopleTable < ActiveRecord::Migration
|
|||
t.references :proposal
|
||||
t.references :person
|
||||
t.references :event
|
||||
t.string :event_role, null: false, default: "participant"
|
||||
t.string :event_role, null: false, default: 'participant'
|
||||
t.string :comment
|
||||
|
||||
t.timestamps
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
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 :user
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ class CreateDifficultyLevels < ActiveRecord::Migration
|
|||
t.references :conference
|
||||
t.string :title
|
||||
t.text :description
|
||||
t.string :color, default: "#ffffff"
|
||||
t.string :color, default: '#ffffff'
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue