File: 20120219175744_create_users.rb

package info (click to toggle)
ruby-sequenced 3.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,884 kB
  • sloc: ruby: 696; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.references :account
      t.string :name
      t.integer :custom_sequential_id

      t.timestamps
    end
    add_index :users, :account_id
  end
end