Sha256: cca7a2fb4672c8fde549c55ce3ce5e3b8de8441e3fb3d9d9c10cfd691d53abcd

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

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.generate
	end
end

namespace :db do
  task migrate: :environment do
    TsSchema.generate if TsSchema.configuration.auto_generate
  end

  task rollback: :environment do
    TsSchema.generate if TsSchema.configuration.auto_generate
  end

  task reset: :environment do
    TsSchema.generate if TsSchema.configuration.auto_generate
  end

  task setup: :environment do
    TsSchema.generate if TsSchema.configuration.auto_generate
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ts_schema-0.1.1 lib/tasks/ts_schema_tasks.rake