Sha256: 324494f518415176319bf150f14abd430b2c11319dc1b59c8e3c75a206ac7d79
Contents?: true
Size: 1.69 KB
Versions: 2
Compression:
Stored size: 1.69 KB
Contents
ActiveRecord::Base.establish_connection ActiveRecord::Schema.define(:version => 0) do # Users are created and updated by other Users create_table :users, :force => true do |t| t.column :name, :string t.column :creator_id, :integer t.column :created_on, :datetime t.column :updater_id, :integer t.column :updated_at, :datetime end # People are created and updated by Users create_table :people, :force => true do |t| t.column :name, :string t.column :creator_id, :integer t.column :created_on, :datetime t.column :updater_id, :integer t.column :updated_at, :datetime end # Posts are created and updated by People create_table :posts, :force => true do |t| t.column :title, :string t.column :creator_id, :integer t.column :created_on, :datetime t.column :updater_id, :integer t.column :updated_at, :datetime t.column :deleter_id, :integer t.column :deleted_at, :datetime end # Comments are created and updated by People # and also use non-standard foreign keys. create_table :comments, :force => true do |t| t.column :post_id, :integer t.column :comment, :string t.column :created_by, :integer t.column :created_at, :datetime t.column :updated_by, :integer t.column :updated_at, :datetime t.column :deleted_by, :integer t.column :deleted_at, :datetime end create_table :tags, force: true do |t| t.column :title, :string end create_table :post_tags, force: true do |t| t.column :post_id, :integer t.column :tag_id, :integer end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-userstamp-3.0.4 | spec/dummy/db/schema.rb |
activerecord-userstamp-3.0.3 | spec/dummy/db/schema.rb |