mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-23 08:03:14 +01:00
10 lines
190 B
Ruby
10 lines
190 B
Ruby
|
class CreateUsers < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :users do |t|
|
||
|
t.string :email
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :users, :email, unique: true
|
||
|
end
|
||
|
end
|