Sha256: 6f5cd56e7a576280d73118bbaf981e11d2277f18b7359c1165ad2714d450f164
Contents?: true
Size: 631 Bytes
Versions: 9
Compression:
Stored size: 631 Bytes
Contents
ActiveRecord::Base.establish_connection( :adapter => 'sqlite3', :database => File.expand_path('../../test.db', __FILE__) ) class CreateSchema < ActiveRecord::Migration def self.up create_table :users, :force => true do |t| t.string :first_name t.string :last_name t.timestamps end create_table :versions, :force => true do |t| t.belongs_to :versioned, :polymorphic => true t.belongs_to :user, :polymorphic => true t.string :user_name t.text :modifications t.integer :number t.integer :reverted_from t.string :tag t.timestamps end end end
Version data entries
9 entries across 9 versions & 6 rubygems