Sha256: f87498c7d58a648553b9243aeaa3821f471733980676aa908b830e0e35bd966b
Contents?: true
Size: 526 Bytes
Versions: 5
Compression:
Stored size: 526 Bytes
Contents
require "rake" require "ts_schema" namespace :ts_schema do desc "Generates a schema file in the default javascripts location, or the location specified in the ts_config initializer options" task generate: :environment do TsSchema.output_file end end namespace :db do def auto_generate_and_save_file TsSchema.output_file if TsSchema.configuration.auto_generate end task :migrate do at_exit { auto_generate_and_save_file } end task :setup do at_exit { auto_generate_and_save_file } end end
Version data entries
5 entries across 5 versions & 1 rubygems