Sha256: 401a173ed5a4d3cdc1bd8e7f109fd684b0259001587b2cebc8b4a003fc2f297f
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ts_schema-0.1.10 | lib/tasks/ts_schema_tasks.rake |
ts_schema-0.1.9 | lib/tasks/ts_schema_tasks.rake |