Sha256: dc57abbe9bd15509b12eae8e516ec716f66c9aa5c9ebe13aa5cd8ae39ffbf169

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

ActiveRecord::Schema.define :version => 0 do
  create_table :users do |t|
    t.string :name
    t.string :slug

    t.timestamps
  end

  create_table :movies do |t|
    t.string :name
    t.string :slug
    t.integer :year

    t.timestamps
  end

  create_table :likes do |t|
    t.integer :user_id
    t.integer :movie_id
    t.integer :rate

    t.timestamps
  end


  create_table :articles do |t|
    t.string :title
    t.string :body
    t.integer :year

    t.timestamps
  end

  create_table :user_follows do |t|
    t.belongs_to :user
    t.belongs_to :item, polymorphic: true

    t.timestamps
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
neoid-0.0.51 spec/support/schema.rb
neoid-0.0.5.alpha spec/support/schema.rb