Sha256: d4482d4d7faf78d9fc7bf98c27b5e01a44a0c5ae9c8b9e7d02da19c57ab17001
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
ActiveRecord::Migration.verbose = false unless ENV.has_key?('DEBUG') class ScopedSearch::Test::DatabaseSchema < ActiveRecord::Migration def self.up create_table :foos do |t| t.string :string_field t.text :text_field t.string :ignored_field t.date :date_field t.timestamps end create_table :users do |t| t.string :first_name, :last_name, :login t.integer :group_id t.integer :address_id end create_table :clients do |t| t.string :first_name, :last_name end create_table :offices do |t| t.string :name t.integer :user_id, :client_id end create_table :groups do |t| t.string :name end create_table :locations do |t| t.string :name end create_table :locations_users, :id => false, :force => true do |t| t.integer :user_id t.integer :location_id end create_table :notes do |t| t.string :title t.text :content t.integer :user_id end create_table :addresses do |t| t.string :street, :city, :state, :postal_code end end def self.down drop_table :foos drop_table :users drop_table :clients drop_table :offices drop_table :groups drop_table :locations drop_table :locations_users drop_table :notes drop_table :addresses end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wvanbergen-scoped_search-1.0.1 | test/lib/test_schema.rb |