Sha256: f71ddf587b0b38b4ce58b4a999ae84dc91319bf5545e7ae6050d1529df928650
Contents?: true
Size: 811 Bytes
Versions: 3
Compression:
Stored size: 811 Bytes
Contents
require "ts_schema/version" require "ts_schema/railtie" require "ts_schema/configuration" require "ts_schema/schema_generator" module TsSchema class << self def setup(&block) configuration.assign(&block) end def configuration @configuration ||= Configuration.new end def generate if ActiveRecord::Base.connection.migration_context.needs_migration? puts "Aborting: There are pending migrations" else SchemaGenerator.new(@configuration).generate end end def output_file if ActiveRecord::Base.connection.migration_context.needs_migration? puts "Aborting: There are pending migrations" else SchemaGenerator.new(@configuration).output_file end end end end require "generators/install_generator"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ts_schema-0.2.1 | lib/ts_schema.rb |
ts_schema-0.1.14 | lib/ts_schema.rb |
ts_schema-0.1.13 | lib/ts_schema.rb |