mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +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 'logger'
|
||||||
require 'pathname'
|
require 'pathname'
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'sinatra'
|
require 'sinatra'
|
||||||
require 'sinatra/cross_origin'
|
require 'sinatra/cross_origin'
|
||||||
require 'sinatra/jsonp'
|
require 'sinatra/jsonp'
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Currency < Sequel::Model
|
class Currency < Sequel::Model
|
||||||
dataset_module do
|
dataset_module do
|
||||||
def recent
|
def recent
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'virtus'
|
require 'virtus'
|
||||||
require 'currency'
|
require 'currency'
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
namespace :db do
|
namespace :db do
|
||||||
|
desc 'Create db'
|
||||||
|
task :create do
|
||||||
|
`createdb fixer`
|
||||||
|
end
|
||||||
|
|
||||||
desc 'Run database migrations'
|
desc 'Run database migrations'
|
||||||
task migrate: :environment do
|
task migrate: :environment do
|
||||||
Sequel.extension(:migration)
|
Sequel.extension(:migration)
|
||||||
|
Loading…
Reference in New Issue
Block a user