Sha256: cdf69f2438c67f820a17e15a51ded451e24632af04716a9e41b9409475033715
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
require "active_record" I18n.enforce_available_locales = true ActiveRecord::Base.establish_connection( adapter: "sqlite3", database: File.expand_path("test_app/db/db.sqlite", File.dirname(__FILE__)), verbosity: "quiet" ) class TestMigration < ActiveRecord::Migration def self.up create_table :posts, force: true do |t| t.column :title, :string t.column :image_id, :string t.column :image_content_type, :string t.column :document_id, :string t.column :document_filename, :string t.column :document_content_type, :string t.column :document_size, :integer end end end quietly do TestMigration.up end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refile-0.5.1 | spec/refile/active_record_helper.rb |
refile-0.5.0 | spec/refile/active_record_helper.rb |