Upgrade to Rails 5.0.1
This commit is contained in:
parent
68e33f3e5a
commit
48840f6254
15 changed files with 178 additions and 74 deletions
2
app/jobs/application_job.rb
Normal file
2
app/jobs/application_job.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
class ApplicationJob < ActiveJob::Base
|
||||
end
|
||||
3
app/models/application_record.rb
Normal file
3
app/models/application_record.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
class ApplicationRecord < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
end
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
require 'pry'
|
||||
|
||||
class Log < ActiveRecord::Base
|
||||
class Log < ApplicationRecord
|
||||
validates :message, presence: true
|
||||
|
||||
validates :section, presence: true
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
require 'open-uri' # allows to load URLs using open()
|
||||
require 'json'
|
||||
|
||||
class Package < ActiveRecord::Base
|
||||
class Package < ApplicationRecord
|
||||
# PostgreSQL-based full-text search:
|
||||
# https://github.com/Casecommons/pg_search
|
||||
include PgSearch
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class Screenshot < ActiveRecord::Base
|
||||
class Screenshot < ApplicationRecord
|
||||
belongs_to :package, :inverse_of=>:screenshots
|
||||
|
||||
has_attached_file :image,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class User < ActiveRecord::Base
|
||||
class User < ApplicationRecord
|
||||
# Include default devise modules. Others available are:
|
||||
# :confirmable, :lockable, :timeoutable and :omniauthable
|
||||
devise :database_authenticatable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue