Sha256: 7050f1defd674de876421e9a16a58ade51f53080a8f5c0206e6e6b8934365ec4
Contents?: true
Size: 1.88 KB
Versions: 4
Compression:
Stored size: 1.88 KB
Contents
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 # Pings are created and updated by People, # but they store their foreign keys as strings. create_table :pings, :force => true do |t| t.column :post_id, :integer t.column :ping, :string t.column :creator_name, :string t.column :created_at, :datetime t.column :updater_name, :string t.column :updated_at, :datetime t.column :deleter_name, :string t.column :deleted_at, :datetime end end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
grosser-userstamp-2.0.0 | test/schema.rb |
userstamp-2.0.0 | test/schema.rb |
magic_userstamp-0.1.1 | spec/schema.rb |
magic_userstamp-0.1.0 | spec/schema.rb |