Sha256: 32db9d91dbee258bdf01d38d10b22e46538a380200a03437cf0dad8eb54d9915
Contents?: true
Size: 1003 Bytes
Versions: 3
Compression:
Stored size: 1003 Bytes
Contents
require "scenic/configuration" require "scenic/adapters/postgres" require "scenic/command_recorder" require "scenic/definition" require "scenic/railtie" require "scenic/schema_dumper" require "scenic/statements" require "scenic/unaffixed_name" require "scenic/version" require "scenic/view" require "scenic/index" # Scenic adds methods `ActiveRecord::Migration` to create and manage database # views in Rails applications. module Scenic # Hooks Scenic into Rails. # # Enables scenic migration methods, migration reversability, and `schema.rb` # dumping. def self.load ActiveRecord::ConnectionAdapters::AbstractAdapter.include Scenic::Statements ActiveRecord::Migration::CommandRecorder.include Scenic::CommandRecorder ActiveRecord::SchemaDumper.prepend Scenic::SchemaDumper end # The current database adapter used by Scenic. # # This defaults to {Adapters::Postgres} but can be overridden # via {Configuration}. def self.database configuration.database end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scenic-1.8.0 | lib/scenic.rb |
scenic-1.7.0 | lib/scenic.rb |
scenic-1.6.0 | lib/scenic.rb |