mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-21 18:42:29 +01:00
Use frozen_string_literal comment
This commit is contained in:
parent
7284abfdd7
commit
bfe8313418
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'logger'
|
||||
require 'pathname'
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'sinatra'
|
||||
require 'sinatra/cross_origin'
|
||||
require 'sinatra/jsonp'
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Currency < Sequel::Model
|
||||
dataset_module do
|
||||
def recent
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'virtus'
|
||||
require 'currency'
|
||||
|
||||
|
@ -1,4 +1,9 @@
|
||||
namespace :db do
|
||||
desc 'Create db'
|
||||
task :create do
|
||||
`createdb fixer`
|
||||
end
|
||||
|
||||
desc 'Run database migrations'
|
||||
task migrate: :environment do
|
||||
Sequel.extension(:migration)
|
||||
|
Loading…
Reference in New Issue
Block a user