Sha256: 32b1d4a0b32b7079b7c47b778e4527c62ef4d2ef0fcff613eefa1816e9f58718
Contents?: true
Size: 954 Bytes
Versions: 3
Compression:
Stored size: 954 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.integer :user_id t.column :title, :string t.column :image_id, :string t.column :document_id, :string t.column :document_filename, :string t.column :document_content_type, :string t.column :document_size, :integer end create_table :users, force: true create_table :documents, force: true do |t| t.belongs_to :post, null: false t.column :file_id, :string, null: false t.column :file_filename, :string t.column :file_content_type, :string t.column :file_size, :integer, null: false end end end quietly do TestMigration.up end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refile-0.6.2 | spec/refile/active_record_helper.rb |
refile-0.6.1 | spec/refile/active_record_helper.rb |
refile-0.6.0 | spec/refile/active_record_helper.rb |