./lib/rack/push-notification.rb in rack-push-notification-0.5.2 vs ./lib/rack/push-notification.rb in rack-push-notification-0.5.3
- old
+ new
@@ -16,12 +16,12 @@
autoload :Device, 'rack/push-notification/models/device'
configure do
if ENV['DATABASE_URL']
Sequel.extension :pg_inet, :migration
- Sequel::Model.db.extension :pg_array
DB = Sequel.connect(ENV['DATABASE_URL'])
+ Sequel::Model.db.extension :pg_array
DB.extend Sequel::Postgres::PGArray::DatabaseMethods
Sequel::Migrator.run(DB, ::File.join(::File.dirname(__FILE__), 'push-notification/migrations'), table: 'push_notification_schema_info')
end
end