Sha256: c81f319dfd2e24a709dcd6de4e699676d6329a3923f39dc1de94713eb60c6090
Contents?: true
Size: 802 Bytes
Versions: 3
Compression:
Stored size: 802 Bytes
Contents
require 'active_record' ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" ActiveRecord::Migrator.up "db/migrate" ActiveRecord::Migration.create_table :users do |t| t.string :name t.string :type t.integer :clan_id t.integer :profile_id t.timestamps null: false end ActiveRecord::Migration.create_table :rebel_profiles do |t| t.string :serial_data t.timestamps null: false end ActiveRecord::Migration.create_table :imperial_profiles do |t| t.string :analog_data t.timestamps null: false end ActiveRecord::Migration.create_table :clans do |t| t.string :name t.integer :strength, default: 50 t.boolean :cool t.timestamps null: false end ActiveRecord::Migration.create_table :x_wings do |t| t.integer :rebel_id t.timestamps null: false end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acts_as-0.6.5 | spec/support/active_record.rb |
acts_as-0.6.4 | spec/support/active_record.rb |
acts_as-0.6.3 | spec/support/active_record.rb |