ledermann/drafting

View on GitHub
bin/console

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

require "bundler/setup"
require "drafting"

$LOAD_PATH.unshift(File.expand_path('..', File.dirname(__FILE__)))
require 'lib/generators/drafting/migration/templates/migration.rb'
require 'spec/support/spec_migration.rb'

require 'spec/models/user'
require 'spec/models/topic'
require 'spec/models/message'
require 'spec/models/page'
require 'spec/models/tag'

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

ActiveRecord::Base.configurations = YAML.load_file('spec/database.yml')
ActiveRecord::Base.establish_connection(:sqlite)
ActiveRecord::Migration.verbose = false

DraftingMigration.up
SpecMigration.up

require "irb"
IRB.start