mirror of https://framagit.org/tykayn/mastodon.git
15 lines
356 B
Ruby
15 lines
356 B
Ruby
class CreateUserGroups < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :user_groups do |t|
|
|
t.string :name, null: false
|
|
t.datetime :createdAt
|
|
t.string :visibility
|
|
t.integer :account_id
|
|
t.integer :creator_id
|
|
has_many :accounts, foreign_key: :domain, primary_key: :domain
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|