Sha256: 08eafca61b964d50def8680781aa7bf5d58e8f932024f12016f45629083e3284
Contents?: true
Size: 621 Bytes
Versions: 5
Compression:
Stored size: 621 Bytes
Contents
require "rake" 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 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: :environment do auto_generate_and_save_file end task rollback: :environment do auto_generate_and_save_file end task reset: :environment do auto_generate_and_save_file end task setup: :environment do auto_generate_and_save_file end end
Version data entries
5 entries across 5 versions & 1 rubygems